<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.11.0"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Lesson Project: Driver/w25qxx.h File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">Lesson Project<span id="projectnumber">&#160;Beta V1.0</span>
   </div>
   <div id="projectbrief">Course Learning Template Engineering</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.11.0 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() { codefold.init(0); });
/* @license-end */
</script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function(){ initResizable(false); });
/* @license-end */
</script>
<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_7151b3cc910409bb744bd274374c738d.html">Driver</a></li>  </ul>
</div>
</div><!-- top -->
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle"><div class="title">w25qxx.h File Reference</div></div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &quot;stm32f4xx_hal.h&quot;</code><br />
<code>#include &quot;stm32f4xx_hal_gpio.h&quot;</code><br />
<code>#include &quot;stm32f4xx_hal_spi.h&quot;</code><br />
<code>#include &quot;main.h&quot;</code><br />
<code>#include &quot;spi.h&quot;</code><br />
<code>#include &quot;gpio.h&quot;</code><br />
</div><div class="textblock"><div class="dynheader">
Include dependency graph for w25qxx.h:</div>
<div class="dyncontent">
<div class="center"><img src="w25qxx_8h__incl.png" border="0" usemap="#a_driver_2w25qxx_8h" alt=""/></div>
</div>
</div><div class="textblock"><div class="dynheader">
This graph shows which files directly or indirectly include this file:</div>
<div class="dyncontent">
<div class="center"><img src="w25qxx_8h__dep__incl.png" border="0" usemap="#a_driver_2w25qxx_8hdep" alt=""/></div>
</div>
</div>
<p><a href="w25qxx_8h_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="func-members" name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:a621f3e3670e9f64bb3d320f96e55bcfd" id="r_a621f3e3670e9f64bb3d320f96e55bcfd"><td class="memItemLeft" align="right" valign="top">uint16_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a621f3e3670e9f64bb3d320f96e55bcfd">w25qxx_read_id</a> (void)</td></tr>
<tr class="memdesc:a621f3e3670e9f64bb3d320f96e55bcfd"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get w25qxx's id.  <br /></td></tr>
<tr class="separator:a621f3e3670e9f64bb3d320f96e55bcfd"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><dl class="section author"><dt>Author</dt><dd>T4056 Student </dd></dl>
<dl class="section date"><dt>Date</dt><dd>2024-07-13 </dd></dl>
<dl class="section version"><dt>Version</dt><dd>V1.0 </dd></dl>
<dl class="section user"><dt>CopyRight(c)</dt><dd>2024 T4056 Student.All rights reserved. </dd></dl>

<p class="definition">Definition in file <a class="el" href="w25qxx_8h_source.html">w25qxx.h</a>.</p>
</div><h2 class="groupheader">Function Documentation</h2>
<a id="a621f3e3670e9f64bb3d320f96e55bcfd" name="a621f3e3670e9f64bb3d320f96e55bcfd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a621f3e3670e9f64bb3d320f96e55bcfd">&#9670;&#160;</a></span>w25qxx_read_id()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint16_t w25qxx_read_id </td>
          <td>(</td>
          <td class="paramtype">void</td>          <td class="paramname"><span class="paramname"><em></em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get w25qxx's id. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">None</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>w25qxx's id</dd></dl>
<p>1.Enable Flash CS Pin 2.Send SPI Command 0x90 3.Send 3 dummy Command 0x00 4.Read 2 Byte as id 5.Disable Flash CE Pin 6.Return id </p><dl class="bug"><dt><b><a class="el" href="bug.html#_bug000001">Bug</a></b></dt><dd>If there are any problems with SPI Transmit that have not been resolved </dd></dl>

<p class="definition">Definition at line <a class="el" href="w25qxx_8c_source.html#l00035">35</a> of file <a class="el" href="w25qxx_8c_source.html">w25qxx.c</a>.</p>

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.11.0
</small></address>
</div><!-- doc-content -->
</body>
</html>
